// 账号管理
export const accountThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '账号名称',
    key: 'name',
    minWidth: 120
  },
  {
    title: '登陆名称',
    key: 'userName',
    minWidth: 180
  },
  {
    title: '手机号码',
    key: 'phone',
    minWidth: 150
  },
  {
    title: '邮箱',
    key: 'email',
    minWidth: 120
  },
  {
    title: '所属公司',
    key: 'companyName',
    minWidth: 240
  },
  {
    title: '角色',
    key: 'roleName',
    minWidth: 120
  },
  {
    title: '账号状态',
    key: 'enabled',
    render: (h, params) => {
      const text = params.row.enabled == true ? '已启用' : '禁用'
      return h('span', text)
    },
    minWidth: 120
  },
  {
    title: '创建时间',
    key: 'createdOn',
    render: (h, params) => {
      const text = params.row.createdOn ? params.row.createdOn.slice(0, 10) + ' ' + params.row.createdOn.slice(11, 19) : ''
      return h('span', text)
    },
    minWidth: 180
  },
  {
    title: '操作',
    width: 300,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]
